package oo;

public class Teacher {
    private String teacherId;
    private String teacherName;
    private String gender;
    private Course teachingCourse;

    // 构造方法
    public Teacher(String teacherId, String teacherName, String gender, Course teachingCourse) {
        this.teacherId = teacherId;
        this.teacherName = teacherName;
        this.gender = gender;
        this.teachingCourse = teachingCourse;
    }

    // 模拟教师开课操作
    public void openCourse() {
        System.out.println("教师" + teacherName + "开启课程" + teachingCourse.getCourseName() + "的授课");
    }

    // getter方法（可选，根据需要添加）
    public String getTeacherName() {
        return teacherName;
    }

    public Course getTeachingCourse() {
        return teachingCourse;
    }
}